<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" 9content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var sum = 0;
        for(var a = 1;a<=100;a++){
            if(a%2==0){
                sum-=(1/a)
            }else{
                sum+=(1/a)
            }
        }document.write(sum.toFixed(6))
    </script>
</head>
<body>
    
</body>
</html>